<?php
class gCalendarSyncQ extends dbObject {
	public $user_id;
        public $calendar_id;
	public $status;
        public $bootstrap_completed;
	public $last_sync;
	public $in_progress;
        public $sync_start;
        
        
	public function __construct($user_id) {
		$this->dbTable = "gcalendar_queue";
		$this->tableKey = 'user_id';
		$this->keyType = 'hash';

		if ($user_id != null) {
			$queue = $this->find($user_id);
			foreach (get_object_vars($queue) as $key => $val) {
				$this->$key = $val;
			}
                        
		}
	}
}
?>